package org.linlinjava.litemall.wx.web;

import org.linlinjava.litemall.wx.service.WxAdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
@RequestMapping("/wx/ad")
public class WxAdController {
    @Autowired
    private WxAdService wxAdService;

    /**
     * 展示轮播图 (1：借阅，2：商城)
     * @param position
     * @return
     */
    @GetMapping("/showBanner")
    public Object showBanner(@RequestParam Byte position) {
        return wxAdService.showBanner(position);
    }
}

